package br.ita.comp.ces22.quiz.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name ="quiz")
@NamedQueries({
		@NamedQuery(name="Quiz.findById", 
				query = "SELECT q FROM quiz q WHERE q.id = :id"),
		@NamedQuery(name="Quiz.findAll",
				query = "SELECT * FROM quiz")
})	
public class QuizKey implements Serializable{
	static final long serialVersionUID = 1L;
	
	@Id
	@Column(name="login")
	private String login;
	
	@Column(name="idquestion")
	private Integer idQuestion;
	
	public String getLogin() {
		return login;
	}
	public void setLogin(String login) {
		this.login = login;
	}
	public Integer getIdQuestion() {
		return idQuestion;
	}
	public void setIdQuestion(Integer idQuestion) {
		this.idQuestion = idQuestion;
	}
}
